package model

import (
	"time"
)

type AuWalletRecharge struct {
	RechargeId          int       `xorm:"not null pk autoincr INT(11)"`
	WalletId            int       `xorm:"not null index INT(11)"`
	RechargeChannel     int       `xorm:"default 0 TINYINT(1)"`
	RechargeType        int       `xorm:"default 0 index TINYINT(1)"`
	IsPaybycard         int       `xorm:"default 0 TINYINT(1)"`
	RechargeCard        string    `xorm:"not null default '' VARCHAR(60)"`
	BusinessCard        string    `xorm:"not null default '' index VARCHAR(60)"`
	PayNo               string    `xorm:"not null default '' VARCHAR(60)"`
	ReceiptNo           string    `xorm:"not null default '' index VARCHAR(60)"`
	RechargeAmount      string    `xorm:"not null default 0.00 DECIMAL(9,2)"`
	MerchantFee         string    `xorm:"not null default 0.00 DECIMAL(9,2)"`
	BankFee             string    `xorm:"not null default 0.00 DECIMAL(9,2)"`
	RechargeStatus      int       `xorm:"default 0 TINYINT(1)"`
	RechargeFaildOption int       `xorm:"default 0 TINYINT(1)"`
	RechargeFaildReason string    `xorm:"not null default '' VARCHAR(60)"`
	RechargeRemark      string    `xorm:"not null default '' VARCHAR(60)"`
	ReviewerAccountId   int       `xorm:"default 0 index INT(11)"`
	ReviewerAccountName string    `xorm:"default '' index VARCHAR(20)"`
	ProcessTime         time.Time `xorm:"not null DATETIME"`
	LastUpdateTime      time.Time `xorm:"not null DATETIME"`
	Createtime          time.Time `xorm:"not null index DATETIME"`
}
